Repository navigation
Conversation
commit: |
|
Intresting. Have you comparared oxidase with oxc-transform? The former is more actively maintained and is from original author. /cc @Boshen |
Yes, maintainer activity is one of my primary considerations when choosing a replacement. Our use case is quite special: we can’t provide sufficient context to transformers, so they often inadvertently modify our code. For example, even replacing quotes can cause issues. We need to avoid any optimizations introduced by transformers entirely.
Given these reasons, |
|
|
@Boshen Is the another project some kind of transpiler? I know our use case is niche, but it's pity that oxidase is no longer maintained. I tried If we want to strip these keywords accurately, we need to call TypeScript's scanner, which is not much different from @danielroe What do you think about switching to |
There was a problem hiding this comment.
I make a lib with oxc-parser for transpiling https://github.com/Teages/oxc-blank-space
It passed all test from ts-blank-space and enum test from oxidase (ts-blank-space does not support enum).
I haven't done any bench yet, because the performance improve may be not obvious before we migrate to rust. But I think this would be a good start for switching to "transpile".
esbuild with oxidase|
Benchmark on
|
e9bf251 to
9c0edc0
Compare
9c0edc0 to
f57adf7
Compare
f57adf7 to
478f8dc
Compare
c12e2ab to
0ce8526
Compare
0ce8526 to
9ff0b98
Compare
Use
petreato transpile TypeScript script or snappets.Performance
test with Nuxt UI:
Breaking changes
esbuildoption is no longer applied to.vuescript blocks, includedefine